package com.yzh.croom.model.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

import java.sql.Timestamp;
import java.util.Date;

@Entity(name = "tb_message")
public class Message implements Serializable {
    @Id
    private int id;
    private String account;
    private String reason;
    @Column(name = "room_id")
    private String roomId;
    @Column(name = "week_id")
    private int weekId;
    @Column(name = "time_id")
    private int timeId;
    private Date date;
    private int status;

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", reason='" + reason + '\'' +
                ", roomId='" + roomId + '\'' +
                ", weekId=" + weekId +
                ", timeId=" + timeId +
                ", date=" + date +
                ", status=" + status +
                '}';
    }

    public int getId() {
        return id;
    }

    public Message setId(int id) {
        this.id = id;
        return this;
    }

    public String getAccount() {
        return account;
    }

    public Message setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getReason() {
        return reason;
    }

    public Message setReason(String reason) {
        this.reason = reason;
        return this;
    }

    public String getRoomId() {
        return roomId;
    }

    public Message setRoomId(String roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getWeekId() {
        return weekId;
    }

    public Message setWeekId(int weekId) {
        this.weekId = weekId;
        return this;
    }

    public int getTimeId() {
        return timeId;
    }

    public Message setTimeId(int timeId) {
        this.timeId = timeId;
        return this;
    }

    public Date getDate() {
        return date;
    }

    public Message setDate(Date date) {
        this.date = date;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public Message setStatus(int status) {
        this.status = status;
        return this;
    }
}
